package com.jadefashion.mapper;

import com.jadefashion.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderSettingMapper {
    Long findCountByDate(Date orderDate);

    void updateByDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> findDate(@Param("begin") String begin, @Param("end") String end);

    void updateNumberByDate(@Param("number") Integer number, @Param("date") String date);

    int isBookableByDate(@Param("orderDate") String orderDate);

    void addReservationsByOrderDate(@Param("orderDate") String orderDate);

    void releaseOrder(@Param("orderDate") String orderDate);

    void cleanOrderSetting(@Param("lastDay")String lastDay);
}
